package com.extendsDemo.Demo02;

/*
创建Teacher和Consultant的对象
*/
public class Test {
    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        teacher.setName("李文建");
        teacher.setSkills("java、Spring");
        teacher.printInfo();

        //创建Consultant对象
        Consultant consultant = new Consultant();
        consultant.setName("播仔");
        consultant.setPeisoncount("49");
        consultant.printInfo();
    }
}
